package com.zy.design.ocp;

import com.zy.design.ocp.ns.ApiStatInfo;

/**
 * @author zhaoyi
 * @date 2021/3/15 18:37
 */
public class TestUse {
    public static void main(String[] args) {
        ApiStatInfo apiStatInfo = new ApiStatInfo();
        apiStatInfo.setRequestCount(1);
        apiStatInfo.setErrorCount(1);
        apiStatInfo.setDurationOfSeconds(1);
        apiStatInfo.setTimeoutCount(1);
        //设置 apiStatInfo 数据值的代码
        ApplicationContext.getInstance().getAlert().check(apiStatInfo);
    }
}
